package problems.solved;

import java.math.BigInteger;

import utils.BigFibiterator;

public class Problem25 {
	public static void main(String[] args) {
		int count = 0;
		final BigFibiterator iterator = new BigFibiterator();
		while(true) {
			count++;
			final BigInteger next = iterator.next();
			final int length = next.toString().length();
			if (length >= 1000) {
				System.out.println("F(" + count + ") = " + next.toString()); //4782
				break;
			}
		}
	}
}
